package com.usian.user.feign;

import com.usian.common.Result;
import com.usian.entity.Cars;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("cars")
public interface CarFeignClient {

    @GetMapping("/cars/cars/getCarByCarId/{carId}")
    public Result<Cars> getCarByCarId(@PathVariable Integer carId);

    @GetMapping("/cars/car-images/getCarImagesByCarId/{carId}")
    public Result<String> getCarImagesByCarId(@PathVariable Integer carId);
}
